package com.museum.controller.APi;

import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseApiService;
import com.museum.base.BaseResponse;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @ClassName museum
 * @Author: 王瑞文
 * @Date: 2021/3/8 22:23
 */
@RestController
public class TestController extends BaseApiService<JSONObject> implements TestAPI {
    @Override
    public BaseResponse<JSONObject> test01() {
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);

        JSONObject object = new JSONObject();
        object.put("message", list);

        return setResultSuccess(object);
    }
}
